package com.test.updater.updatefsm;

/**
 * Created by lmy on 2015/8/12.
 */
public class UpdateConfig {

    //下载状态标识TAG
    public final static int UPDATE_NEW_STATE_TAG = 100000;
    public final static int UPDATE_CHECK_WAIT_STATE_TAG = 100001;
    public final static int UPDATE_CHECKING_STATE_TAG = 100002;
    public final static int UPDATE_CHECK_CANCELING_TAG = 100003;
    public final static int UPDATE_CHECK_CANCELED_TAG = 100004;
    public final static int UPDATE_CHECKED_STATE_TAG = 100005;
    public final static int UPDATE_DOWNLOAD_WAIT_STATE_TAG = 100006;
    public final static int UPDATE_DOWNLOADING_STATE_TAG = 100007;
    public final static int UPDATE_DOWNLOAD_CANCELING_TAG = 100008;
    public final static int UPDATE_DOWNLOAD_CANCELED_TAG = 100009;
    public final static int UPDATE_DOWNLOADED_STATE_TAG = 100010;
    public final static int UPDATE_INSTALL_STATE_TAG = 100011;
    public final static int UPDATE_COPY_FILE_STATE_TAG = 100012;
    public final static int UPDATE_FINISH_STATE_TAG = 100013;


    //执行操作状态机类型
    public enum UPDATE_FSM_TYPE
    {
        UPDATE_CHECK_FSM,
        UPDATE_DOWNLOAD_FSM,
        UPDATE_INSTALL_FSM,
        UPDATE_COPYFILE_FSM
    }


    //版本升级url地址
    public final static String VERSION_UPDATE_URL = "http://127.0.0.1:8090/UserAdmin/update.php";
}
